package com.glorious.exception;

import com.glorious.common.IResultCode;
import lombok.Getter;

@Getter
public class NormalException extends RuntimeException{
    private static final long serialVersionUID = -1057140859283571146L;
    public IResultCode resultCode;

    public NormalException(IResultCode errorCode) {
        super(errorCode.getMsg());
        this.resultCode = errorCode;
    }

    public NormalException(String message){
        super(message);
    }

    public NormalException(String message, Throwable cause){
        super(message, cause);
    }

    public NormalException(Throwable cause){
        super(cause);
    }
}
